home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Files
/
FileReader.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
613b
|
33 lines
// FileReader.h
#ifndef FileReader_h
#define FileReader_h
#ifndef Integers_h
#include "Integers.h"
#endif
class FileAccessPath;
class Buffer;
class FileReader: private ParamBlockRec
{
private:
bool finished;
void ThrowError( OSErr );
public:
FileReader( const FileAccessPath&, uint32 position = 0 );
uint32 Position() const { return ioParam.ioPosOffset; }
void SetPosition( uint32 p ) { ioParam.ioPosOffset = p; finished = false; }
bool Finished() const { return finished; }
bool Unfinished() const { return !finished; }
uint32 operator>>( Buffer& );
};
#endif